/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package service.system.impl;

import dao.system.CompanyDao;
import model.system.Company;
import service.system.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author Yusup Jauhari Shandi <in.visi>
 */
@Service("companyService")
@Transactional(readOnly=true)
public class CompanyImpl implements CompanyService{
    @Autowired CompanyDao companyDao;
    @Transactional(readOnly=false)
    
    @Override
    public boolean save(Company company) {
         return companyDao.save(company);
    }

    @Override
    public Company getCompany() {
         return companyDao.getById(1);
    }
    
}
